package com.o2o.factory;

import org.springframework.stereotype.Component;

@Component
public class CategoryFactory {

	public static CategorySourceService categorySourceService = new CategorySourceService();
	
	
	public CategoryFactory(){
		
	}
	public static  CategorySourceService getCategoryService(){
//		if(categorySourceService == null){ //如果categorySourceService为空,创建实例
//			categorySourceService = new CategorySourceService();
//		}
		return categorySourceService;
	}

}
